﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;

namespace SchemesServer
{
    /// <summary>
    /// App.xaml 的交互逻辑
    /// </summary>
    public partial class App : Application
    {

        public static bool IsLoadStart
        {
            get;
            private set;
        }

        protected override void OnStartup(StartupEventArgs e)
        {
            if (e.Args.Length > 0)
            {
                if (e.Args.Where((s) => s.ToLower() == "-autostart").Count() > 0)
                {
                    IsLoadStart = true;
                }
                else
                {
                    IsLoadStart = false;
                }
            }


            //base.OnStartup(e);
        }
    }
}
